﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MECopter.Communication
{
    /// <summary>
    /// Class to save incomming data to a buffer
    /// </summary>
    class ReadData
    {
        #region Fields
        /// <summary>
        /// Type of the data
        /// </summary>
        public ReadDataType Type;

        /// <summary>
        /// Actual data
        /// </summary>
        public object Data;
        #endregion

        #region Constructor
        /// <summary>
        /// Creates an object of MECopter.Communication.ReadData
        /// </summary>
        /// <param name="type">Type of the data</param>
        /// <param name="data">Actual data</param>
        public ReadData(ReadDataType type, object data)
        {
            this.Type = type;
            this.Data = data;
        }
        #endregion
    }
}
